package com.qf.qftenantmanager.web.controller;

import com.qf.common.bean.R;
import com.qf.qftenantmanager.service.DeviceService;
import com.qf.qftenantmanager.service.DeviceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tenant/device-type")
public class DeviceTypeController {

    @Autowired
    private DeviceTypeService deviceTypeService;

    @GetMapping("/all")
    public R all(){
        return deviceTypeService.all();
    }
}
